package cn.cdeden.aiqa.domain.bo;

import cn.cdeden.aiqa.domain.WikiModel;
import cn.cdeden.common.core.validate.AddGroup;
import cn.cdeden.common.core.validate.EditGroup;
import cn.cdeden.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * 模型管理业务对象 wiki_model
 *
 * @author Nick
 * @date 2025-02-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WikiModel.class, reverseConvertGenerate = false)
public class WikiModelBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 适用的角色
     */
    @NotBlank(message = "适用的角色不能为空", groups = { AddGroup.class, EditGroup.class })
    private String allowedRoles;

    /**
     * 适用的角色名称
     */
    @NotBlank(message = "适用的角色名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String allowedRolesName;

    /**
     * 模型名称
     */
    @NotBlank(message = "模型名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modelName;

    /**
     * 图标url
     */
//    @NotBlank(message = "图标url不能为空", groups = { AddGroup.class, EditGroup.class })
    private  byte[] iconUrl;

    /**
     * 类型传值
     */
//    @NotBlank(message = "类型传值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String value;

    /**
     * 状态：1启用、0禁用
     */
    @NotNull(message = "状态：1启用、0禁用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long enabled;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;

    /**
     * 模型类型
     */
    @NotBlank(message = "模型类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modelType;

    /**
     * 模型地址
     */
//    @NotBlank(message = "模型地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modelUrl;

    /**
     * 模型APIKey
     */
    private String modelKey;

    private MultipartFile imageFile;


}
